package com.chinasoft.class6.group4;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class XieYiXuan implements TrueWord {
    List<String> wordList = new ArrayList<String>();

    public XieYiXuan() {
        wordList.add("好想吃饭");
        wordList.add("好想下课");
    }

    @Override
    public String getWord() {
        int index = new Random().nextInt(wordList.size());
        return this.wordList.get(index);
    }

    @Override
    public String getName() {
        return "谢怡宣";
    }
}

